{$CLEO .s}
{$INCLUDE_ONCE ../cleo_tester.inc}

script_name "0AE9" // pop_float
test("0AE9 (pop_float)", tests)
terminate_this_custom_script

function tests

    it("should pop float from stack", test1)
    return


    function test1
        0@s = '42.5'
        2@ = get_var_pointer 0@
        call_function 0x0823CEE {argCount} 1 {pop} 1 {arg} 2@ // double atof(const char *)

        pop_float {result} 3@
        
        3@ == 42.5
        assert_result_true()

    end
end
